package org.aeon.gamechatnest.common.enumeration;

import lombok.Getter;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: MissingAeon
 * @date: 2024/5/10 8:56
 * @description: 登录状态枚举类
 */
@Getter
public enum LoginStatus implements Serializable {
    /**
     * 这个状态作为保留
     * 无需将这个状态存入redis
     */
    OFFLINE(0),
    ONLINE(1),
    // 隐身
    INVISIBLE(2);

    @Serial
    private static final long serialVersionUID = 1L;
    private final Integer value;

    LoginStatus(Integer value) {
        this.value = value;
    }
}
